#include <QtGui/QApplication>
#include "hdtrackingwindow.h"
#include "testwindow.h"

int main(int argc, char *argv[])
{
	QApplication a(argc, argv);
// 	QFile file(":/HDTrackingWindow/Resources/HSV.fx");
// 	QByteArray arr = file.readAll();

	//QString str = QFile(":/HDTrackingWindow/HSV.fx").readAll().data();

	if(argc > 1)
	{
		QStringList args = a.arguments();

		if(args[1] == "track")
		{
			HDTrackingWindow w; 
			w.show();
			return a.exec();
		}
		
		if(args[1] == "deformation")
		{
			TestWindow w;
			w.show();
			return a.exec();
		}
		return 0;
	}
	else
	{
		//TestWindow w;
		HDTrackingWindow w;
		w.show();
		return a.exec();
	}
}